package demo1;

public class Test {
    public static void main(String[] args) {
        /*   Dog dog = new Dog("旺财");
           func1(dog);
           Bird bird =new Bird("小鸟");
           func1(bird);*/
      /*  Dog dog1 = new Dog("旺财");
        Animal animal = dog1;
        if(animal instanceof Bird) {
            Bird bird = (Bird) animal;
            bird.shout();
        } else {
            System.out.printf(" animal instanceof Bird Not!!!!!");
        }
    }*/
 Animal animal = new Animal();
    }

}